Skip to content

Quality: Dangling reference expression in MediaRecorder shim#404

Merged
davidliu merged 1 commit into
livekit:mainfrom
qdzsh:improve/quality/dangling-reference-expression-in-mediare
Jun 11, 2026
Merged

Quality: Dangling reference expression in MediaRecorder shim#404
davidliu merged 1 commit into
livekit:mainfrom
qdzsh:improve/quality/dangling-reference-expression-in-mediare

Conversation

@qdzsh

@qdzsh qdzsh commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Quality: Dangling reference expression in MediaRecorder shim

Problem

Severity: Low | File: src/polyfills/MediaRecorderShim.ts:L14

The final statement 'MediaRecorder' in shimMediaRecorder does nothing and serves no purpose. It appears to be a leftover or mistaken attempt to ensure the module is loaded.

Solution

Remove the dangling 'MediaRecorder' expression. The import already ensures the module is loaded.

Changes

  • src/polyfills/MediaRecorderShim.ts (modified)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

The final statement 'MediaRecorder' in shimMediaRecorder does nothing and serves no purpose. It appears to be a leftover or mistaken attempt to ensure the module is loaded.

Affected files: MediaRecorderShim.ts

Signed-off-by: Quang Do <github@qdzsh.dev>
@changeset-bot

changeset-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 07e5a02

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@davidliu davidliu merged commit 49e6233 into livekit:main Jun 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants